/*
 * @Descripttion:
 * @version:
 * @Author: lsy
 * @Date: 2021-12-08 09:40:08
 * @LastEditors: lsy
 * @LastEditTime: 2021-12-16 11:28:37
 */
module.exports = {

    // 获取密码加密公钥
    getPublic_key: {
        url: () => `/evo-apigw/evo-oauth/${localStorage.getItem("evo-oauth")}/oauth/public-key`,
        type: "get",
        config: { noToken: true }
    },

    // 登录获取token
    refreshToken: {
        url: () => "/evo-apigw//evo-oauth/oauth/token",
        type: "post",
        config: { noToken: true }
    },

    // 获取登录页配置
    getloginConfig: {
        url: () => `/evo-apigw/evo-brm/${localStorage.getItem("evo-brm")}/index`,
        type: "get",
        config: { noToken: true }
    },

    // 获取evo_brm版本号
    getBrmVersion: {
        url: () => "/evo-apigw/evo-brm/version",
        type: "get",
        config: { noToken: true }
    },
    // 获取子系统版本号
    getVersions: {
        url: () => `/evo-apigw/evo-brm/${localStorage.getItem("evo-brm")}/config/get-version`,
        type: "get",
        config: { noToken: true }
    },

    // 退出登录
    loginOut: {
        url: () => `/evo-apigw/evo-oauth/${localStorage.getItem("evo-oauth")}/oauth/logout`,
        type: "get",
        config: {}
    }

}